.stack-parent {
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 300px;
/*    border: 1px solid #000000;*/
}

.my-canvas {
    width: 300px;
    height: 300px;
}